<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>智慧公社-个人中心</title>


    <link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/animate.css" rel="stylesheet" />
    <link href="__PUBLIC__/css/font-awesome.css"  rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="__PUBLIC__/css/index.css">
    <link href="__PUBLIC__/css/iosOverlay.css"  rel="stylesheet" type="text/css">
    <!--[if IE 7]>
    <link rel="stylesheet" href="__PUBLIC__/css/font-awesome-ie7.css">
    <![endif]-->
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/js/headroom.js"></script>
    <script src="__PUBLIC__/js/jquery.snippet.min.js"></script>
    <script src="__PUBLIC__/js/bootstrap.min.js"></script>
    <script src="__PUBLIC__/js/jquery.pin.min.js"></script>
    <script src="__PUBLIC__/js/index.js"></script>
    <script src="__PUBLIC__/js/iosOverlay.js"></script>
    <script src="__PUBLIC__/js/spin.min.js"></script>
    <script>
        var url="{:U('Index/addArticle')}";
        var urlDown="{:U('Index/daoAcrticle')}";
	    var urlOrder="{:U('Index/discussOrder')}";
		var urlImages="/sc2.0/Public/images/";
    </script>
    <!--<style>
    *{border: 1px solid rgb(250,0,255);}
    </style>-->
<style>
    .card-body img{ width:100% !important;}
</style>
</head>
<body style="background-color:#f8f8f8">

    <!-- 头部导航开始 -->
  <include file="Index/title" />
     <div style="height: 680px; position: absolute; top: 0px; width: 100%; z-index:-1; overflow:hidden;"><img src="__PUBLIC__/images/mypagebg.jpg" style="width:100%;min-width:1360px"/></div>
    
    <!-- 主体信息开始 -->

    <div id='contents' class="container"> 
        <div class="mypage">
            <div class="mypage-head"><img src="{$Minfo['img']}" width="100" class="img-circle border-3" /><div class="index-top-heart"> {$Minfo['praise']}</div></div>
            <div class="mypage-title">{$Minfo['name']}</div>
           <if condition="$Minfo['text'] eq ''">
            <div class="mypage-info">写下你的 <a href="{:U('Index/setup')}">成就和梦想！</a></div>
            <else/>
            <div class="mypage-info">{$Minfo['text']}</div>
            </if>
            <div class="mypage-tab">
                <ul id="myTab" class="nav mypage-pills nav-justified">
                    <li class="active"><a href="#note" data-toggle="tab"><p>讨论</p><p class="tab-info">{$Minfo['articleNum']}</p></a></li>
                    <li class=""><a href="friend.html"><p>朋友</p><p class="tab-info">{$Minfo['friend']}</p></a></li>
                </ul>
            </div>
            <div class="mypage-userinfo row">
                <div class="col-xs-6 left">
                	<!--<i class="fa fa-map-marker  "></i>-->
                    <p></p>
                	<p></p>
                    <p>思想深度： {$Minfo['disNumCount'] * 10 + $Minfo['discuss'] * 5 + $Minfo['operateCount'] * 2}</p>
                </div>
                
                <div class="col-xs-6 right">
                	<p></p>
                	<p></p>
                	<p>和&nbsp;&nbsp;{$Minfo['disNumCount']}&nbsp;&nbsp;人，参与了&nbsp;&nbsp;{$Minfo['discuss']}&nbsp;&nbsp;次讨论，发表&nbsp;&nbsp;{$Minfo['operateCount']}&nbsp;&nbsp;条观点</p>
                </div>
            </div>
        </div>
        <div id="myTabContent2" class="tab-content"> 
            <div class="tab-pane active fade in" id="note">
                <div class="row " style="margin-top:30px;">
                    <div class="col-xs-6 leftCont">
                        <div class="userdata panel panel-default">

                            <div class="panel-body">

                                <div class="card-head">
                                   <!-- <h1>{$Minfo['name']}<small>男，19岁</small></h1>-->
                                </div>
                                <div class="card-body">
                                    <div class="tags">
                                        <span>
                                            擅长：
                                   <foreach name="scTag" item="scVo"> 
                                   <span>
                                  <span class="btn tag}">{$scVo['tag_content']}</span>
                                 </span> 
                                </foreach>
                                        </span>
                                       <!-- <span class="fa fa-plus"></span>-->
                                    </div>
                                    <div class="tags">
                                        <span>
                                            兴趣：
                                             <foreach name="xqTag" item="xqVo"> 
                                   <span>
                                    <span class="btn tag }">{$xqVo['tag_content']}</span>
                                 </span> 
                                </foreach>
                                        </span>
                                       <!-- <span class="fa fa-plus"></span>-->
                                    </div>
                                </div>
                                <div class="card-confirm">
                                	<a type="button" class="btn btn-primary confirm-btn" href="{:U('Index/setup')}">修改资料</a>
                                	<span class="cursor" data-toggle="modal" data-target="#yqModal"><a type="button" class="btn btn-danger confirm-btn">邀请好友</a></span>   
                                </div>
                                <!--邀请连接模态框-->
                                  <div class="modal fade" id="yqModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                                    <div class="modal-dialog">
                                      <div class="modal-content">
                                        <div class="modal-header" style="font-size:16px"> 这是您的专用邀请链接，请复制后发给身边的小伙伴。 </div>
                                        <div class="modal-body" id="urlCont">
                                        说出你对事物的见解和疑惑，有思想的人都在这，我们一起讨论！<br>
                                        http://stuccess.org{:U('Login/signup',array('yq'=>$uCont['user_linvite']))} </div>
                                        <div class="modal-footer">
                                          <button id="copyBtn"  type="button" class="btn" data-dismiss="modal" aria-hidden="true">知道了</button>
                                        </div>
                                      </div>
                                    </div>
                                  </div><!--邀请连接模态框-->
                            </div>

                        </div>
                 <volist name="list" id="vo" mod="2">
           <eq name="mod"  value="1" >
                <div class="card panel panel-default">
            
                    <div class="panel-body">
                
                        <div class="card-head">
                            <div class="card-head-left"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}"><img src="{$vo['user_img']}" width="45" class="img-circle" /></a></div>
                            <div class="card-head-center"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}">{$vo['user_name']}</a><small>@{$vo['article_time']}</small></div>
                            <if condition="($vo['article_type'] eq 2) or ($vo['article_type'] eq 3) or($vo['article_type'] eq 6)">
                            <div class="card-head-right">
							<span class="fa fa-eye"> {$vo['article_num']}</span>&nbsp;&nbsp;&nbsp;
                           <if condition="$vo['is_order'] eq 1">
                             <span class="fa fa-rss marking"> {$vo['article_order']}</span>
                            <else/>
                            <span class="order cursor " value="{$vo['article_id']}"><span class="fa fa-rss "> {$vo['article_order']}</span></span>
                            </if>
                            
                            </div>
                         <else/>
                         <div class="card-head-right">
							<span class="fa fa-eye"> {$vo['article_num']}</span>&nbsp;&nbsp;&nbsp;
                                <if condition="$vo['article_father_id'] eq 0"> 
                                  <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                              		<i value="{$vo['article_id']}" class="fa fa-thumbs-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                                  <else/>
                                  	<i value="{$vo['article_id']}" class="fa fa-thumbs-o-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                                  </if>
                                <else/>
                                 <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                              		<i value="{$vo['article_father_id']}" class="fa fa-thumbs-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                                  <else/>
                                  	<i value="{$vo['article_father_id']}" class="fa fa-thumbs-o-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                                  </if>
                                </if>
                               </div>
                         </if>
                            <div class="clearfix"></div>
                        </div>
                        <div class="card-body">
                       <switch name="vo['article_type']">
                           <case value="1"> <div class="title discuss articleTitle"><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}">{$vo['article_title']}</a></span></span></div>
                          <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}">{$vo['article_content']}</a>
                          </div>
                           </case>
                           <case value="2"> <div class="title discuss articleTitle">发起 <span>讨论</span><span class="titleCont"><a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}">{$vo['article_title']}</a></span></div>
                          <div class="articleCont">
                          <a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}">{$vo['article_content']}</a>
                          </div>
                           </case>
                            <case value="3"> <div class="title discuss articleTitle">参与 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="4"> <div class="title discuss articleTitle">赞同 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="5"> <div class="title discuss articleTitle">批阅 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                            </case>
                             <case value="6"> <div class="title discuss articleTitle">订阅 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                             </case>
                            
                            </switch>

                        </div>
                        <div class=""></div>
                    </div>

                </div>
                </eq>
                </volist>
            </div>
         <!--php开始RIGHT-->
            <div class="col-xs-6 rightCont" id="appCont">
              <volist name="list" id="vo" mod="2">
           <eq name="mod"  value="0" >
                <div class="card panel panel-default">
            
                    <div class="panel-body">
                        
                        <div class="card-head">
                            <div class="card-head-left"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}"><img src="{$vo['user_img']}" width="45" class="img-circle" /></a></div>
                            <div class="card-head-center"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}">{$vo['user_name']}</a><small>@{$vo['article_time']}</small></div>
                            <if condition="($vo['article_type'] eq 2) or ($vo['article_type'] eq 3) or($vo['article_type'] eq 6)">
                            <div class="card-head-right">
							<span class="fa fa-eye"> {$vo['article_num']}</span>&nbsp;&nbsp;&nbsp;
                           <if condition="$vo['is_order'] eq 1">
                             <span class="fa fa-rss marking"> {$vo['article_order']}</span>
                            <else/>
                            <span class="order cursor " value="{$vo['article_id']}"><span class="fa fa-rss "> {$vo['article_order']}</span></span>
                            </if>
                            </div>
                         <else/>
                         <div class="card-head-right">
							<span class="fa fa-eye"> {$vo['article_num']}</span>&nbsp;&nbsp;&nbsp;
                           <if condition="$vo['article_father_id'] eq 0"> 
                                  <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                              		<i value="{$vo['article_id']}" class="fa fa-thumbs-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                                  <else/>
                                  	<i value="{$vo['article_id']}" class="fa fa-thumbs-o-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                                  </if>
                                <else/>
                                 <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                              		<i value="{$vo['article_father_id']}" class="fa fa-thumbs-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                                  <else/>
                                  	<i value="{$vo[article_father_id]}" class="fa fa-thumbs-o-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                                  </if>
                                </if>
                             </div>
                         </if>
                            <div class="clearfix"></div>
                        </div>
                        <div class="card-body">
                        <switch name="vo['article_type']">
                           <case value="1"> <div class="title discuss articleTitle"><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}">{$vo['article_title']}</a></span></span></div>
                          <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}">{$vo['article_content']}</a>
                          </div>
                           </case>
                           <case value="2"> <div class="title discuss articleTitle">发起 <span>讨论</span><span class="titleCont"><a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}">{$vo['article_title']}</a></span></div>
                          <div class="articleCont">
                          <a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}">{$vo['article_content']}</a>
                          </div>
                           </case>
                            <case value="3"> <div class="title discuss articleTitle">参与 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="4"> <div class="title discuss articleTitle">赞同 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="5"> <div class="title discuss articleTitle">批阅 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                            </case>
                             <case value="6"> <div class="title discuss articleTitle">订阅 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}">{$vo['article_content']}</a>
                          </div>
                             </case>
                            
                            </switch>
                        </div>
                        <div class=""></div>
                    </div>

                </div>
                </eq>
                </volist>
                </div>
                </div>
            </div>

        </div>
    </div> <!-- 主体信息结束 -->

<div  style="background-color: #f1f2f3; color: #99A9B4; margin:auto; line-height:30px; text-align:center; width: 910px;" class="cursor fildLoad" value="{$max_id}" >点击加载更多</div>
    <footer>
        
    </footer>
    <script type="text/javascript">
        jQuery(function ($) {
            $(document).ready(function () {
                var header = new Headroom(document.querySelector(".navbar"), {
                    tolerance: 0,
                    offset: 0,
                    classes: {
                        initial: "animated",
                        pinned: "slideDown",
                        unpinned: "slideUp"
                    }
                });
                header.init();

                $('.card').mouseover(function () {
                    $(this).find('.close').toggleClass("hidden");
                });
                $('.card').mouseout(function () {
                    $(this).find('.close').toggleClass("hidden");
                });
                $('[data-dismiss="fuck"]').click(function () {
                    $(this).closest('.card').fadeOut(1000);
                });
                //var messcont = $("#myTabContent").find(".mess-close").size();
               // $(".mess-nord").text(messcont);



            });
        });
    </script>
	<include file="Index/copyright" />
</body>
</html>